package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.ProschedueTask;
import com.qidianit.mes.pojo.pro.Workflow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @Author: YanJiRan
 * @Date: 2025/9/18 - 下午1:36
 */
public interface WorkflowMapper {
    /**
     *
     * @param materialCode
     * @return
     */
    List<Workflow> selectListByMaterialCode(String materialCode);
    /**
     *
     * @param workflow
     * @return
     */
    List<Workflow> selectList(Workflow workflow);

    /**
     *
     * @param WorkflowCode
     * @return
     */
    Workflow selectByCode(String WorkflowCode);

    /**
     *
     * @param workflow
     * @return
     */
    int saveWorkflow(Workflow workflow);

    /**
     *
     * @param workflow
     * @return
     */
    int updateById(Workflow workflow);

    /**
     *
     * @param id
     * @return
     */
    int deleteById(Long id);

    /**
     *
     * @param ids
     * @return
     */
    int batchDelete(@Param("ids") Long[] ids);
}
